<div class="editor">
  <pre></pre>
  <nav class="contextmenu" contextmenu="textarea,.ace_content">
    <ul class="dropdown-menu" style="min-width:250px">
      <li><button class="btn btn-default" ng-disabled="!editor.undo.enabled" ng-click="editor.undo.click()">
          <i class="fa fa-undo pull-left"></i> 撤销 <span class="pull-right">Ctrl+Z</span></button></li>
      <li><button class="btn btn-default" ng-disabled="!editor.redo.enabled" ng-click="editor.redo.click()">
          <i class="fa fa-repeat pull-left"></i> 重做 <span class="pull-right">Ctrl+Y</span></button></li>
      <li class="divider"></li>
      <li><button class="btn btn-default" ng-disabled="!editor.cut.enabled" ng-click="editor.cut.click()">
          <i class="fa fa-cut pull-left"></i> 剪切 <span class="pull-right">Ctrl+X</span></button></li>
      <li><button class="btn btn-default" ng-disabled="!editor.copy.enabled" ng-click="editor.copy.click()">
          <i class="fa fa-copy pull-left"></i> 复制 <span class="pull-right">Ctrl+C</span></button></li>
      <li><button class="btn btn-default" ng-disabled="!editor.paste.enabled" ng-click="editor.paste.click()">
          <i class="fa fa-paste pull-left"></i> 粘贴 <span class="pull-right">Ctrl+V</span></button></li>
      <li class="divider"></li>
      <li><button class="btn btn-default" ng-click="editor.find.click()">
          <i class="fa fa-search pull-left"></i> 查找/替换... <span class="pull-right">Ctrl+F</span></button></li>
      <li class="divider"></li>
      <li class="dropdown-submenu" ng-class="{'hover':editor.source.enabled}" ng-if="extend == 'default'">
        <button class="btn btn-default" ng-disabled="!editor.source.enabled">
            <i class="fa fa-code pull-left"></i> 源代码</button>
        <ul class="dropdown-menu" style="min-width:230px">
          <li><button class="btn btn-default" ng-click="editor.source.comment.click('line')">单行注释
              <span class="pull-right">Ctrl+/</span></button></li>
          <li><button class="btn btn-default" ng-click="editor.source.comment.click('block')">多行注释
              <span class="pull-right">Ctrl+Shift+/</span></button></li>
          <li class="divider"></li>
          <li><button class="btn btn-default" ng-click="editor.source.fold.click()">
              <i class="fa fa-minus-square-o pull-left"></i> 折叠 <span class="pull-right">Alt-L</span></button></li>
          <li><button class="btn btn-default" ng-click="editor.source.unfold.click()">
              <i class="fa fa-plus-square-o pull-left"></i> 展开 <span class="pull-right">Alt-Shift-L</span></button></li>
          <li class="divider"></li>
          <li><button class="btn btn-default" ng-click="editor.source.format.click()">格式化
              <span class="pull-right">Ctrl+Shift+F</span></button></li>
          <li class="divider"></li>
          <li><button class="btn btn-default" ng-click="editor.source.goto.click()">
              <i class="fa fa-list-ol pull-left"></i> 行号跳转... <span class="pull-right">Ctrl+L</span></button></li>
        </ul>
      </li>
      <extendmenu></extendmenu>
      <li class="divider"></li>
      <li><button class="btn btn-default" ng-disabled="!editor.save.enabled" ng-click="editor.save.click()">
          <i class="fa fa-save pull-left"></i> 保存 <span class="pull-right">Ctrl+S</span></button></li>
    </ul>
  </nav>
</div>
